#! /usr/bin/env python
# coding: utf-8


from math import pi
import random

class Tarea():
    def __init__(self, name, duration, precedence):
        self.termino = False
        self.name = name
        self.duration = duration
        self.precedence = precedence


class Nodo():
    contador = -1
    def __init__(self,nombre = False):
        self.__class__.contador += 1
        if not nombre:
            self.id = self.__class__.contador
        else:
            self.id = nombre
        self.entrantes = []
        self.salientes = []
        self.precedenciaCumplida = []
        self.temprana = -1
        self.tardia   = -1
        self.terminado = False
